<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			//js运算能力一般
			//var hd=1+1;
			//hd=12+'5';
			//hd=4.8-1.2;
			//取余
			//hd=5%3;
			//document.write(hd);
			//prompt返回的都是字符串类型*1解决
			var num=prompt("请输入一个整数:")*1;
			if(num%2==1){
				document.write("奇数");
			}
			else{
				document.write("偶数");
			}
			
		</script>
	</head>
	<body>
	</body>
</html>
